package com.macro.mall.ums.enums;

/**
 * 提现方式枚举
 *
 * @author xuyanjun
 * @date 2019-12-28
 */
public enum MemberWithdrawLogWayEnum {

    /**
     * 支付宝
     */
    ALIPAY(5, "支付宝"),

    /**
     * 微信
     */
    WECHAT(10, "微信"),

    ;
    /**
     * 值
     */
    private int value;

    /**
     * 描述
     */
    private String description;

    MemberWithdrawLogWayEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public static MemberWithdrawLogWayEnum enumOf(int value) {
        for (MemberWithdrawLogWayEnum userLevelEnum : values()) {
            if (value == userLevelEnum.value) {
                return userLevelEnum;
            }
        }
        throw new IllegalArgumentException("不合法的提现方式枚举。");
    }


    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

}
